package cn.yzfy.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @author 一朝风月
 * @date 2025/9/11 13:58
 * @Code 面向注解面向卿，终无解释再无你
 * @description
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class UserSafeException extends BaseException {
    @Serial
    private static final long serialVersionUID = 4539114534440161867L;
    public UserSafeException() {
    }

    public UserSafeException(String message, int code) {
        super(message, code);
    }

    public UserSafeException(String message) {
        super(message, 500);
    }

    public UserSafeException(String message, Throwable cause, int code) {
        super(message, cause, code);
    }

    public UserSafeException(Throwable cause, int code) {
        super(cause, code);
    }

    public UserSafeException(String message, Throwable cause, boolean enableSuppression,
                                 boolean writableStackTrace, int code) {
        super(message, cause, enableSuppression, writableStackTrace, code);
    }
}
